.class Lcom/instagram/android/activity/l;
.super Ljava/lang/Object;
.source "CaptureFlowHelper.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# instance fields
.field final synthetic a:[Ljava/lang/CharSequence;

.field final synthetic b:Lcom/instagram/android/activity/k;


# direct methods
.method constructor <init>(Lcom/instagram/android/activity/k;[Ljava/lang/CharSequence;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 96
    iput-object p1, p0, Lcom/instagram/android/activity/l;->b:Lcom/instagram/android/activity/k;

    iput-object p2, p0, Lcom/instagram/android/activity/l;->a:[Ljava/lang/CharSequence;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method private a(I)Z
    .locals 3
    .parameter

    .prologue
    .line 111
    iget-object v0, p0, Lcom/instagram/android/activity/l;->a:[Ljava/lang/CharSequence;

    aget-object v0, v0, p1

    iget-object v1, p0, Lcom/instagram/android/activity/l;->b:Lcom/instagram/android/activity/k;

    invoke-static {v1}, Lcom/instagram/android/activity/k;->c(Lcom/instagram/android/activity/k;)Landroid/content/Context;

    move-result-object v1

    sget v2, Lcom/facebook/ba;->legacy_camera_capture_options_item_photo:I

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    return v0
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 3
    .parameter "dialog"
    .parameter "which"

    .prologue
    .line 100
    invoke-direct {p0, p2}, Lcom/instagram/android/activity/l;->a(I)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 101
    iget-object v0, p0, Lcom/instagram/android/activity/l;->b:Lcom/instagram/android/activity/k;

    invoke-static {}, Lcom/instagram/android/util/i;->a()Ljava/io/File;

    move-result-object v1

    iput-object v1, v0, Lcom/instagram/android/activity/k;->a:Ljava/io/File;

    .line 102
    iget-object v0, p0, Lcom/instagram/android/activity/l;->b:Lcom/instagram/android/activity/k;

    invoke-static {v0}, Lcom/instagram/android/activity/k;->a(Lcom/instagram/android/activity/k;)Lcom/instagram/android/activity/m;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/activity/l;->b:Lcom/instagram/android/activity/k;

    iget-object v1, v1, Lcom/instagram/android/activity/k;->a:Ljava/io/File;

    const/16 v2, 0x2713

    invoke-interface {v0, v1, v2}, Lcom/instagram/android/activity/m;->a(Ljava/io/File;I)V

    .line 108
    :goto_0
    return-void

    .line 106
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/activity/l;->b:Lcom/instagram/android/activity/k;

    invoke-static {v0}, Lcom/instagram/android/activity/k;->b(Lcom/instagram/android/activity/k;)V

    goto :goto_0
.end method
